package UnSymmetric

type UnSymmetricInterface interface {
	SetPublickey(Publickey string)
	SetPrivatekey(Privatekey string)
	GetPublickey() string
	GetPrivatekey() string

	Readpublickey(publickeypath string)
	Readprivatekey(privatekeypath string)
	MakeKey(publickeypath, privatekeypath string)
	GetPublicKey() string
	GetPrivateKey() string

	Encrypt(datastr []byte) []byte //加密
	Decrypt(datastr []byte) []byte //解密

	EncryptString(datastr string) string //加密
	DecryptString(datastr string) string //解密

	EncryptFilePath(filepath string) string //加密文件
	DecryptFilePath(filepath string) string //解密文件

	SignString(datastr string) (string, string)                      //签名字符串
	VerificationSignString(datastr string, rtext, stext string) bool //验证签名

	SignFilePath(filepath string) (string, string) //签名文件
	VerificationSignPath(filepath string, rtext, stext string) bool
}
